{% extends 'base.html' %}
{% block title %}发布{% endblock %}
{% block content %}
    <style type="text/css">
        body {
            font-family: Arial, sans-serif;
            background-color: #f8f9fa;
            margin: 20px;
        }

        .container {
            max-width: 600px;
            margin: auto;
            padding: 20px;
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        .form-group {
            margin-bottom: 15px;
        }

        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            width: auto;
            color: #333;
        }

        input[type="text"], input[type="file"], select, textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            box-sizing: border-box;
            transition: border 0.3s;
        }

        input[type="text"]:focus, input[type="file"]:focus, select:focus, textarea:focus {
            border-color: #80bdff;
            outline: none;
        }

        button {
            padding: 10px 15px;
            background-color: #007bff;
            border: none;
            border-radius: 4px;
            color: white;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        button:hover {
            background-color: #0056b3;
        }
    </style>
    <div class="container">
        <div class="col">
            <form action="/issue/" method="post">
                {% csrf_token %}
                <div class="form-group">
                    {{ market_form.type.label_tag }}
                    {{ market_form.type }}
                </div>
                <div class="form-group">
                    {{ market_form.bookname.label_tag }}
                    {{ market_form.bookname }}
                </div>
                <div class="form-group">
                    {{ market_form.pic.label_tag }}
                    {{ market_form.pic }}
                </div>
                <div class="form-group">
                    {{ market_form.major.label_tag }}
                    {{ market_form.major }}
                </div>
                <div class="form-group">
                    {{ market_form.grade.label_tag }}
                    {{ market_form.grade }}
                </div>
                <div class="form-group">
                    {{ market_form.price.label_tag }}
                    {{ market_form.price }}
                </div>
                <div class="form-group">
                    {{ market_form.qq.label_tag }}
                    {{ market_form.qq }}
                </div>
                <button type="submit" class="btn btn-primary">发布</button>
            </form>
        </div>
    </div>
{% endblock %}